/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simulator;
import static org.junit.Assert.*;
import org.junit.Test;
/**
 *
 * @author Administrador
 */
public class TestRam {
    Ram memory;
    public TestRam(){
        this.memory = Ram.getInstance();
    }
    
    @Test
    public void testInstructionInsertAndRetreive(){
        memory.setInstructionField("0000", "0110");
        String test = memory.getInstruction("0000");
        assertTrue(test.equals("0110"));
    }
    public static void main(String args[]) {
      org.junit.runner.JUnitCore.main("simulator.TestRam");
    }    
}
